export default {
	state: {
		avatar: "",
		balance: "",
		has_order: 0,
		id: 0,
		identity: "",
		invite_code: "",
		is_palm_management: 0,
		level: 0,
		mobile: "",
		name: "",
		nickname: "",
		order: {},
		order_num: {},
		position: "",
		positions: 0,
		referrer_id: null,
		shop: [],
	},
	mutations: {
		getMemberData(state,payload) {
			Object.keys(state).map((item,index) => {
				state[item] = payload[item]
			})
		}
	}
}